package asteroids.model.programs.parsing.expressions;

import java.util.Map;

import asteroids.model.CollisionObject;

public class Entity extends BasicExpression {
	private CollisionObject collisionObject;
	
	public Entity(){
		this.collisionObject = null;
	}
	
	public Entity(CollisionObject collisionObject){
		setEntity(collisionObject);
	}
	
	public void setEntity(CollisionObject collisionObject){
		this.collisionObject = collisionObject;
	}
	
	
	@Override
	public Object getContent(Map<String, E> map, CollisionObject givenCollisionObject) {
		return this.collisionObject;
	}

	@Override
	public boolean isBoolean() {
		return false;
	}
	@Override
	public boolean isDouble() {
		return false;
	}
	@Override
	public boolean isEntity() {
		return true;
	}
	@Override
	public boolean isString() {
		return false;
	}

}
